﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Index" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title>测试APP</title>
    <link href="css/global.css" rel="stylesheet" type="text/css" />
    <link href="css/bensie.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body {
            margin: 0;
            padding: 0;
        }

        .page-form {
            margin-left: auto;
            margin-right: auto;
            margin-top: 10%;
        }
    </style>
    <script src="js/jquery-last.js" type="text/javascript"></script>
    <script src="js/jquery.form.js" type="text/javascript"></script>
    <script src="js/bensie.mini.last.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <table class="page-form">
            <tr>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td>
                    <label>
                        <i></i>帐号：</label>
                </td>
                <td>
                    <input class="txt" name="user" placeholder="请填写帐号" />
                </td>
            </tr>
            <tr>
                <td>
                    <label>
                        <i></i>密码：</label>
                </td>
                <td>
                    <input class="txt" name="pass" placeholder="请填写密码" type="password" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input class="btn-ok" type="button" value="测试" onclick="test()" />
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center;">
                    <img src="QrCode.aspx?id=http://www.baidu.com?ol=i|in=pok&isUrl=true" />
                </td>
            </tr>
        </table>
    </form>
</body>
<script>
    function test() {
        //var v = Index.Test('ajax').value;
        //alert(v);
        Index.Test('ajax', {
            success: function (e) {
                var json = JSON.parse(e);
                alert(json.length);
                alert(JSON.stringify(json));
            },
            dataType: 'text',
            async: false
        });
    }
</script>
</html>
